package com.bookocean.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 徽章定义PO类
 * 
 * @author BookOcean
 * @since 2024-01-01
 */
@Data
@TableName("badge_definition_po")
public class BadgeDefinitionPO {

    /**
     * 徽章ID
     */
    @TableId(value = "badge_id", type = IdType.AUTO)
    private Long badgeId;

    /**
     * 徽章名称
     */
    @TableField("name")
    private String name;

    /**
     * 徽章描述
     */
    @TableField("description")
    private String description;

    /**
     * 徽章图标URL
     */
    @TableField("icon_url")
    private String iconUrl;

    /**
     * 徽章分类
     */
    @TableField("category")
    private String category;

    /**
     * 获得条件
     */
    @TableField("requirement")
    private String requirement;

    /**
     * 是否启用
     */
    @TableField("is_active")
    private Boolean isActive;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;
}
